//
//  YSImagePickerViewController.m
//  Yaoyle
//
//  Created by ZhaoXudong on 14-10-21.
//  Copyright (c) 2014年 ZhaoXudong. All rights reserved.
//

#import "YSImagePickerViewController.h"

@interface YSImagePickerViewController ()

@end

@implementation YSImagePickerViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark -
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return (interfaceOrientation ==  UIInterfaceOrientationLandscapeLeft ||
            interfaceOrientation ==  UIInterfaceOrientationLandscapeRight );
}

-(NSUInteger)supportedInterfaceOrientations {
    return UIInterfaceOrientationMaskLandscape;
}

- (BOOL)shouldAutorotate {
    return YES;
}

@end
